-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't run tidy exec check on WSL2 #74753
Conversation
WSL has a lowercase "microsoft' in `/proc/version`
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
WSL2 is a normal VM, why should it skip that step? |
This comment has been minimized.
This comment has been minimized.
I'm not sure why the original check was there, but this seems like a reasonable extension of it. I'm ok to r+ but @mati865 if you'd prefer to discuss a bit more that's fine with me too. |
I'm still not convinced this is the proper solution. WSL2 has proper ext4 filesystem that has proper permissions:
You really shouldn't use Rust from IMO the proper solution here would be to check if filesystem supports proper permissions and otherwise skip the check but I doubt that's easy to do. |
I see. Maybe others in the windows notification group may have some advice =) @rustbot ping windows |
Hey Windows Group! This bug has been identified as a good "Windows candidate". cc @arlosi @danielframpton @gdr-at-ms @kennykerr @luqmana @lzybkr @retep998 @rylev @sivadeilra |
Adding |
This was discussed during today's compiler meeting, check out the log here |
and there was further followup discussion today, here The conclusion from yesterday had been "maybe we should revise things so that this check runs solely on CI, because the existing logic (with or without the change proposed here) isn't really doing the right thing -- you want to know properties of the file system, not of the host OS)." But then today we rethought things more. maybe we'll still disable the check outside of CI, or maybe we'll come up with a more robust form of the check. See the discussion linked above. I'm leaving this PR open for now, because if we do leave this logic in, then we should probably apply this amendment to it. But it would be better to figure out a way to revise the logic or remove it. |
Modify executable checking to be more universal This uses a dummy file to check if the filesystem being used supports the executable bit in general. Supersedes rust-lang#74753.
☔ The latest upstream changes (presumably #78060) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels:
|
@Mark-Simulacrum it looks like your PR supersedes this, so I'll just close it? |
Yes, that seems right, thank you! |
WSL2 has a lowercase "microsoft' in
/proc/version